<%--
  Created by IntelliJ IDEA.
  User: LH
  Date: 2022/9/8
  Time: 18:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String n = request.getParameter("n");
    Integer number = Integer.valueOf(n);
    int sum=1;
    for (int i = 1; i <=number ; i++) {
        sum=sum*i;
    }
%>
<%=n+"的阶乘是："+sum%>
</body>
</html>
